# set defautl images
FROM openjdk:8-jdk-alpine

EXPOSE 80

ENV APPLICATION_ARTIFACTID="docker-demo"
ENV VERSION="0.0.1-SNAPSHOT"

WORKDIR /workspace

COPY target/${APPLICATION_ARTIFACTID}-${VERSION}.jar app.jar

ENTRYPOINT ["java","-jar","app.jar"]